]<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>学校管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
			return false;
		}
	</script>
</head>
<body>
<ul class="nav nav-tabs">
	<li class="active"><a href="${ctx}/school/school/">学校列表</a></li>
	<shiro:hasPermission name="school:school:edit"><li><a href="${ctx}/school/school/form">学校添加</a></li></shiro:hasPermission>
</ul>
<form:form id="searchForm" modelAttribute="school" action="${ctx}/school/school/" method="post" class="breadcrumb form-search">
	<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
	<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
	<label>学校名称：</label><form:input path="schoolName" htmlEscape="false" maxlength="50" class="input-medium"/>
	&nbsp;&nbsp;
	<label>学校地址：</label><form:input path="schoolAddress" htmlEscape="false" maxlength="50" class="input-medium"/>
	&nbsp;<input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>
</form:form>
<sys:message content="${message}"/>
<table id="contentTable" class="table table-striped table-bordered table-condensed">
	<tr><th>学校名称</th><th>学校地址</th><th>学校链接</th><th>联系电话</th><th>联系人</th><shiro:hasPermission name="school:school:edit"><th>操作</th></shiro:hasPermission></tr>
	<c:forEach items="${page.list}" var="school">
		<tr>
			<td><a href="form?id=${school.id}">${school.schoolName}</a></td>
			<td>${school.schoolAddress}</td>
			<td>${school.schoolLink}</td>
			<td>${school.schoolPhone}</td>
			<td>${school.schoolOperator}</td>
			<shiro:hasPermission name="school:school:edit"><td>
				<%--<a href="${ctx}/school/school/look?id=${school.id}">查看</a>--%>
				<a href="${ctx}/school/school/form?id=${school.id}">修改</a>
				<a href="${ctx}/school/school/delete?id=${school.id}" onclick="return confirmx('确认要删除该学校吗？', this.href)">删除</a>
			</td></shiro:hasPermission>
		</tr>
	</c:forEach>
</table>
<div class="pagination">${page}</div>
</body>
</html>